﻿using BW.Rabbit.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.Rabbit.Infrasttucture
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class RabbidDBContext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options"></param>
        public RabbidDBContext(DbContextOptions<RabbidDBContext> options) : base(options)
        {
        }
        /// <summary>
        /// 辅料表
        /// </summary>
        public DbSet<Accessories> Accessoriess {  get; set; }
        /// <summary>
        /// 添加剂
        /// </summary>
        public DbSet<Additive> Additives {  get; set; }
        /// <summary>
        /// 养殖信息
        /// </summary>
        public DbSet<Breed> Breeds {  get; set; }
        /// <summary>
        /// 屠宰公司
        /// </summary>
        public DbSet<Company> Companies {  get; set; }
        /// <summary>
        /// 县级
        /// </summary>
        public DbSet<County> Counties {  get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public DbSet<Goods> Goods {  get; set; }
        /// <summary>
        /// 商品信息
        /// </summary>
        public DbSet<GoodsInfo> GoodsInfos { get; set; }
        /// <summary>
        /// 保健表
        /// </summary>
        public DbSet<Health> Healthes { get; set; }
        /// <summary>
        /// 图片表
        /// </summary>
        public DbSet<Images> Images { get; set; }
        /// <summary>
        /// 养殖企业信息
        /// </summary>
        public DbSet<Information> Informations { get; set; }
        /// <summary>
        /// 深加工信息表
        /// </summary>
        public DbSet<Machining> Machining { get; set; }
        /// <summary>
        /// 加工企业
        /// </summary>
        public DbSet<MachiningEnterprise> MachiningEnterprises { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public DbSet<Market> Markets { get; set; }
        /// <summary>
        /// 原料表
        /// </summary>
        public DbSet<Material> Materials { get; set; }
        /// <summary>
        /// 包材表
        /// </summary>
        public DbSet<PackeMaterial> PackeMaterials { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public DbSet<Province> Provinces { get; set; }
        /// <summary>
        /// 屠宰表
        /// </summary>
        public DbSet<Slaughter> Slaughters { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserInfo> UserInfos { get; set; }
    }
}
